package com.cnt.service;

import com.cnt.entity.RequestMoney;
import com.cnt.vo.RequestMoneyVo;
import com.cnt.vo.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface RequestMoneyService {

    ResultVo<String> apply(Integer donationId, double money, String reason);

    ResultVo<String> uploadReport(MultipartFile file, Integer fundingId);

    public InputStream downloadReport(Integer fundingId);

    ResultVo<List<RequestMoney>> queryByDonationId(Integer isPerson, Integer donationId);

    ResultVo<Double> checkMoney(Integer donationId);

    public ResultVo<String> agreeRequestMoney(Integer requestMoneyId, String evaluate);

    public ResultVo<String> rejectRequestMoney(Integer requestMoneyId, String evaluate);

    public ResultVo<List<RequestMoneyVo>> getRequestMoneyVo();

    public ResultVo<String> grant(Integer requestMoneyId);
}
